package com.siyu.basedata.rainsence.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.rainsence.mapper.RainSenceMapper;
import com.siyu.basedata.rainsence.domain.RainSence;
import com.siyu.basedata.rainsence.service.IRainSenceService;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.rainsence.mapper.RainSenceMapper;
import com.siyu.basedata.rainsence.domain.RainSence;
import com.siyu.basedata.rainsence.service.IRainSenceService;

/**
 * 降雨情景Service业务层处理
 *
 * @author hrhy
 * @date 2024-07-04
 */
@Service
public class RainSenceServiceImpl extends ServiceImpl<RainSenceMapper, RainSence> implements IRainSenceService
{
    @Autowired
    private RainSenceMapper rainSenceMapper;

    /**
     * 查询降雨情景
     *
     * @param id 降雨情景主键
     * @return 降雨情景
     */
    @Override
    public RainSence selectRainSenceById(String id)
    {
        return rainSenceMapper.selectRainSenceById(id);
    }

    /**
     * 查询降雨情景列表
     *
     * @param rainSence 降雨情景
     * @return 降雨情景
     */
    @Override
    public List<RainSence> selectRainSenceList(RainSence rainSence)
    {
        return rainSenceMapper.selectRainSenceList(rainSence);
    }

    /**
     * 新增降雨情景
     *
     * @param rainSence 降雨情景
     * @return 结果
     */
    @Override
    public int insertRainSence(RainSence rainSence)
    {
            return rainSenceMapper.insertRainSence(rainSence);
    }

    /**
     * 修改降雨情景
     *
     * @param rainSence 降雨情景
     * @return 结果
     */
    @Override
    public int updateRainSence(RainSence rainSence)
    {
        return rainSenceMapper.updateRainSence(rainSence);
    }

    /**
     * 批量删除降雨情景
     *
     * @param ids 需要删除的降雨情景主键
     * @return 结果
     */
    @Override
    public int deleteRainSenceByIds(String[] ids)
    {
        return rainSenceMapper.deleteRainSenceByIds(ids);
    }

    /**
     * 删除降雨情景信息
     *
     * @param id 降雨情景主键
     * @return 结果
     */
    @Override
    public int deleteRainSenceById(String id)
    {
        return rainSenceMapper.deleteRainSenceById(id);
    }
}


